package com.wendy.common.core.json.jackson;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: ALEX WANG
 * @Date: 2020/3/23 15:04
 */
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface DataMaskingSerializer {

    public DataMaskingEnum type() default DataMaskingEnum.CUSTOMER ;
    /**
     *
     */
    int prefixNoMaskLen() default 0;

    /**
     *
     */
    int suffixNoMaskLen() default 0;

    /**
     * 打码替换字符
     */
    String mask() default "*";
}
